package jackson.entity

import com.fasterxml.jackson.annotation.JsonAnyGetter

class ExtendableBean(var name: String) {
    private var properties: MutableMap<String, String>? = null
    @JsonAnyGetter(enabled = false)
    fun getProperties(): Map<String, String>? {
        return properties
    }

    fun add(key: String, value: String) {
        if (properties == null) {
            properties = HashMap()
        }
        properties!![key] = value
    }
}
